/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-15 11:00:54
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2024-06-04 09:21:42
 * @FilePath: \cxl-driving-training\src\views\questionManagement\list\config.ts
 */
export const tableConfig = {
    headerOperation: [],
    search: [
        {
            key: 'schoolId',
            type: 'select',
            name: '所属驾校',
            modelValue: '',
            options: <any>[]
        },
        { key: 'content', type: 'text', name: '问题内容', placeholder: '' }
    ],
    permission: ['GET:/api/system/problem/manage/getPageList'],
    table: {
        operationWidth: '120px',
        operation: [
            {
                type: 'ask',
                visible: true,
                permission: ['POST:/api/system/problemReply/manage/add/batch'],
                className: '',
                name: '回答'
            },
            {
                type: 'look',
                visible: true,
                permission: ['GET:/api/system/problemReply/manage/getPageList'],
                className: '',
                name: '详情'
            }
        ],

        propName: {
            schoolShortName: '驾校简称',
            content: '问题内容',
            phone: '手机号码',
            status: '是否显示',
            updateBy: '操作人',
            updateTime: '操作时间'
        },
        showSummary: false,
        selection: false,
        index: false,
        isDialog: false,
        summaryArray: [],
        summaryType: '',
        sortable: [],
        switch: {
            disabled: true,
            permission: ['POST:/api/system/problem/manage/audit'],
            tooltip: {
                visible: false,
                content: ''
            }
        }
    }
}
